
class Customer {
    private String name;
    private String book0;
    private String book1;
    private String book2;
    private boolean accept0;
    private boolean accept1;
    private boolean accept2;

 
    public Customer (String n, String u0, String u1, String u2){
        name=n;
        book0=u0;
        book1=u1;
        book2=u2;
        accept0=accept1=accept2=false;
    }
 
    public void setShipment(int which){
        switch(which){
            case 0: accept0=true; break;
            case 1: accept1=true; break;
            case 2: accept2=true; break;
        }
    }


    public void removeShipment(int which){
         switch(which){
            case 0: accept0=false; break;
            case 1: accept1=false; break;
            case 2: accept2=false; break;
        }
    }

 
    public boolean getShipment(int which){
        switch(which){
            case 0: return accept0;
            case 1: return accept1;
            case 2: return accept2;
            default : return false;
        }
    }

    public String getBook(int which){
        switch(which){
            case 0: return book0;
            case 1: return book1;
            case 2: return book2;
            default : return "Invalid";
        }
    }
    
    public String getName(){
       return name;
    }    

    public String toString(){
        String result = name + "\n";
        result += book0;

        if (accept0) result += " - shipped\n";
        else result += " - delayed\n";
        result += book1;

        if (accept1) result += " - shipped\n";
        else result += " - delayed\n";
        result += book2;

        if (accept2) result += " - shipped\n";
        else result += " - delayed\n";

        return result;
    }
}


